package com.dimanche.library_base.baseui;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;

import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

/**
 * author : Dimanche
 * date   : 2021/3/1 16:59
 * desc   :
 * version: 1.0
 */
public interface IBaseActivity {
    /**
     * 获取布局ID
     *
     * @param savedInstanceState
     * @return
     */
    int getLayoutId(Bundle savedInstanceState);

    /**
     * 初始化view控件
     */
    void initViews();

    /**
     * 获取当前contentView
     *
     * @return
     */
    ViewGroup getContentView();

    /**
     * 获取当前activity
     *
     * @return
     */
    RxAppCompatActivity getActivity();


    /**
     * 开启沉浸式
     */
    void openImmersive();

    void showLoading();

    void showLoading(String msg);

    void dissLoading();

    void showSuccess(String msg);

    void showError(String msg);
}
